<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
	<xsl:output method="xml" version="1.0" encoding="utf-8" omit-xml-declaration="yes" indent="yes"/>
	<xsl:strip-space elements="*"/>
	<xsl:param name="mode" />
	
	<xsl:template match="tree">
		<ul>
			<li class="folder root">
				<a href="/">/</a>
				<ul>
					<xsl:apply-templates select="child::node()" />
				</ul>
			</li>
		</ul>
	</xsl:template>
	
	<xsl:template match="folder">
		<li class="folder">
			<a href="/view/page{@document_path}">
				<xsl:value-of select="./@document_label" />
			</a>
			<xsl:if test="count(child::node()) != 0">
				<ul>
					<xsl:apply-templates select="child::node()" />
				</ul>
			</xsl:if>
		</li>
	</xsl:template>
	
	<xsl:template match="file">
		<li class="file">
			<a href="/view/page{@document_path}">
				<xsl:value-of select="./@document_label" />
			</a>
		</li>
	</xsl:template>
	
	
	
	
	
</xsl:stylesheet>
